package com.woniuxy.microloanserver.service;

import com.woniuxy.microloanserver.bean.LoanOrderBean;
import com.woniuxy.microloanserver.bean.LoanOrderStageBean;
import com.woniuxy.microloanserver.bean.LoanRepaymentBillBean;

import java.util.List;

/**
 * Description: 贷款订单相关数据业务层接口
 * @Auther: HanLei
 * @Date: 2021/4/19:15:09
 */

public interface LoanOrderService {

    /*
     * Description :   申请贷款
     *                 将订单数据、订单分期数据、还款账单数据存入数据库
     * ChangeLog : 1. 创建 (2021/4/19 21:45 );
     * @param loanOrderBean 订单对象
     * @param loanOrderStageBean 订单分期对象
     * @param bills 分期还款账单对象集合
     * @return boolean  执行结果
     */
    boolean applyLoan(LoanOrderBean loanOrderBean, LoanOrderStageBean loanOrderStageBean, List<LoanRepaymentBillBean> bills);

}
